<?php
ini_set("display_errors", "On");
error_reporting(E_ALL);

// 引入数据库连接文件
require_once '../coon/connection.php';

$id = $_POST['deleteID'];

$now = date('Y-m-d H:i:s', time());
$addSql = "UPDATE greeting_card_element SET is_delete = 1 where id = '$id'";

if (mysqli_query($GLOBALS['conn'], $addSql)) {
	echo "
            <script>
                alert('删除成功！');
                window.location.href=document.referrer;
            </script>
        ";
} else {
	echo "
            <script>
                alert('修改失败！');
                history.back();
            </script>
        ";
}

